翻訳と辞書
Words near each other
・ DataMapper
・ DataMarket
・ Datamatics Global Services
・ Datamation
・ Datamax UV-1
・ Datameer
・ DataMelt
・ Datames
・ DataMirror
・ Datamonitor
・ Datamost
・ DataMotion
・ Datamyne
・ Datan
・ Data-driven testing
Data-flow analysis
・ Data-Fly
・ Data-informed decision-making
・ Data-intensive computing
・ Data-Link Switching
・ Data-oriented parsing
・ Data-structured language
・ Data.gov
・ Data.gov.in
・ Data.gov.uk
・ Data2map
・ Data3
・ Data3-Symantec Racing Team p/b Scody
・ Data8
・ DataAdapter


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Data-flow analysis : ウィキペディア英語版
Data-flow analysis
Data-flow analysis is a technique for gathering information about the possible set of values calculated at various points in a computer program. A program's control flow graph (CFG) is used to determine those parts of a program to which a particular value assigned to a variable might propagate. The information gathered is often used by compilers when optimizing a program. A canonical example of a data-flow analysis is reaching definitions.
A simple way to perform data-flow analysis of programs is to set up data-flow equations for each node of the control flow graph and solve them by repeatedly calculating the output from the input locally at each node until the whole system stabilizes, i.e., it reaches a fixpoint. This general approach was developed by Gary Kildall while teaching at the Naval Postgraduate School.
== Basic principles ==

It is the process of collecting information about the way the variables are used, defined in the program. Data-flow analysis attempts to obtain particular information at each point in a procedure. Usually, it is enough to obtain this information at the boundaries of basic blocks, since from that it is easy to compute the information at points in the basic block. In forward flow analysis, the exit state of a block is a function of the block's entry state. This function is the composition of the effects of the statements in the block. The entry state of a block is a function of the exit states of its predecessors. This yields a set of data-flow equations:
For each block b:
: out_b = trans_b (in_b)
: in_b = join_(out_p)
In this, trans_b is the transfer function of the block b. It works on the entry state in_b, yielding the exit state out_b. The join operation join combines the exit states of the predecessors p \in pred_b of b, yielding the entry state of b.
After solving this set of equations, the entry and/or exit states of the blocks can be used to derive properties of the program at the block boundaries. The transfer function of each statement separately can be applied to get information at a point inside a basic block.
Each particular type of data-flow analysis has its own specific transfer function and join operation. Some data-flow problems require backward flow analysis. This follows the same plan, except that the transfer function is applied to the exit state yielding the entry state, and the join operation works on the entry states of the successors to yield the exit state.
The entry point (in forward flow) plays an important role: Since it has no predecessors, its entry state is well defined at the start of the analysis. For instance, the set of local variables with known values is empty. If the control flow graph does not contain cycles (there were no explicit or implicit loops in the procedure) solving the equations is straightforward. The control flow graph can then be topologically sorted; running in the order of this sort, the entry states can be computed at the start of each block, since all predecessors of that block have already been processed, so their exit states are available. If the control flow graph does contain cycles, a more advanced algorithm is required.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Data-flow analysis」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.